package com.xx.mapper;
import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.xx.entity.Employees;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;


@Mapper
public interface EmployeesMapper{
    //获取员工列表
    List<Employees> selectAllByEmpNameAndPhoneNumber(@Param("empName") String empName,
                                                     @Param("phoneNumber") String phoneNumber);

    Employees selectByEmployeeId(@Param("employeeId") Integer employeeId);

    //新增
    int insertBatch(@Param("employeesList") List<Employees> employeesList);

    //修改
    int updateSelective(Employees employees);

    //删除
    int delByEmployeeId(@Param("employeeId") Integer employeeId);

    //获取用户信息通过登录名和密码
    Employees selectAllByLoginNameAndPassword(@Param("loginName") String loginName,
                                              @Param("password") String password);

    //通过登录名获取登录用户
    Employees selectAllByLoginName(@Param("loginName") String loginName);
}
